home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / RTFGEN.ZIP / MISC.TPC < prev    next >
Text File  |  1993-08-11  |  8KB  |  284 lines

  1. \docstart
  2.  
  3. \include rtfgen.mac`
  4. \title Color Examples`
  5. \topic ColorDemo`
  6. \keyword colors;color examples`
  7. ===========
  8. \S1 Colors`
  9.  
  10. Foreground color may be specified with the \\cf{\b n} command where {\b n} is the color
  11. number.  The
  12. HEADING file supplied with RTFGEN sets up the color numbers as shown below.`
  13.  
  14. \S4\b\fs24`
  15. \ul n\tab \ul     Color                              \sa50`
  16.    0\tab \cf0 This text is in the default color`
  17.    1\tab \cf1 This text is blue`
  18.    2\tab \cf2 This text is green`
  19.    3\tab \cf3 This text is cyan`
  20.    4\tab \cf4 This text is red`
  21.    5\tab \cf5 This text is magenta`
  22.    6\tab \cf6 This text is brown`
  23.    7\tab \cf7 This text is gray`
  24.    8\tab \cf8 This text is light gray`
  25.    9\tab \cf9 This text is light blue`
  26.    10\tab \cf10 This text is light green`
  27.    11\tab \cf11 This text is light cyan`
  28.    12\tab \cf12 This text is light red`
  29.    13\tab \cf13 This text is light magenta`
  30.    14\tab \cf14 This text is light yellow`
  31.    15\tab \cf15 This text is supposed to be white`
  32. \blockend
  33. ------------
  34. \title Font Examples`
  35. \topic FontDemo`
  36. \keyword fonts;font examples`
  37. ===========
  38. \S1 Fonts`
  39.  
  40. Fonts are specified with the \\f{\b n} command where {\b n} is the font number.  The
  41. HEADING file supplied with RTFGEN sets up the font numbers as shown below.  By
  42. default RTFGEN uses font 2.`
  43.  
  44. \blockstart\tabstops ----r-l-----------------------l------------`
  45. \b\ul\tab  n \tab \ul       Font (10 pt)            \tab\ul       Font (12 pt)              \sa50`
  46. \tab 0.\tab\f0 This font is Tms Rmn.\tab\fs24 This font is Tms Rmn.`
  47. \tab 1.\tab\f1 This font is Symbol {\f2  (Symbol)}.\tab\fs24 This font is Symbol {\f2  (Symbol)}.`
  48. \tab 2.\tab\f2 This font is Helv.\tab\fs24 This font is Helv.`
  49. \tab 3.\tab\f3 This font is Courier.\tab\fs24 This font is Courier.`
  50. \tab 4.\tab\f4 This font is MS Sans Serif.\tab\fs24 This font is MS Sans Serif.`
  51. \tab 5.\tab\f5 This font is Helvitica.\tab\fs24 This font is Helvitica.`
  52. \tab 6.\tab\f6 This font is Arial.\tab\fs24 This font is Arial.`
  53. \tab 7.\tab\f7 This font is Arial Super.\tab\fs24 This font is Arial Super.`
  54. \tab 8.\tab\f8 This font is MS Serif.\tab\fs24 This font is MS Serif.`
  55. \tab 9.\tab\f9 This font is Times.\tab\fs24 This font is Times.`
  56. \tab 10.\tab\f10 This font is Times New Roman.\tab\fs24 This font is Times New Roman.`
  57. \blockend`
  58.  
  59. In Windows 3.1, the default \[FontSubstitutes\] section in WIN.INI, performs the following
  60. translations:`
  61.  
  62.    Helv=MS Sans Serif`
  63.    Tms Rmn=MS Serif`
  64.    Times=Times New Roman`
  65.    Helvetica=Arial`
  66. -----------------
  67.  
  68. \title Macro Examples`
  69. \topic MacroDemo`
  70. \keyword macros`
  71. \browse macros`
  72. ===========
  73. \S1 Text Macro Examples`
  74.  
  75. Sample code and results for the text macros in the file, RTFGEN.MAC.`
  76.  
  77.   [\\S1, Non-scroling heading:S1mac]`
  78.   [\\S2, Scrolling heading:S2mac]`
  79.   [\\S3, Bulleted items:S3mac]`
  80.   [\\S4, Numerical list, non-wrapping:S4mac]`
  81.   [\\S5, Numerical list, wraps:S5mac]`
  82.   [\\S6, List of items, explanations:S6mac]`
  83. --------------
  84.  
  85. \topic S1mac`
  86. \browse macros`
  87. ===========
  88. \S1 Non-scrolling heading`
  89.  
  90. The \\S1 macro is used to make a non scrolling window caption like the one at the top
  91. of this topic.  It can be used only as the first paragraph in a topic and shouldn't be used
  92. in any topic which will be a popup.`
  93.  
  94.   Definition:`
  95.  
  96. \f3\\define \\S1 \\sb50\\sa50 \\f2\\fs24 \\qc\\b \\cf9 \\keepn \\endm\``
  97.  
  98.   Example:`
  99.  
  100. \f3\\S1 Non-scrolling heading\``
  101.  
  102.   Result:`
  103.  
  104. See the heading above.`
  105. ------------
  106.  
  107. \topic S2mac`
  108. \browse macros`
  109. ===========
  110. \S1 Scrolling heading`
  111.  
  112. The \\S2 macro provides a heading which scrolls with the topic.`
  113.  
  114.   Definition:`
  115.  
  116. \f3\\define \\S2 \\sb50\\sa50 \\f2\\fs24 \\qc\\b \\cf9 \\endm\``
  117.  
  118.   Example:`
  119.  
  120. \f3\\S2 Scrolling heading\``
  121.  
  122.   Result:`
  123.  
  124. \S2 Scrolling heading`
  125. -----------
  126.  
  127. \topic S3mac`
  128. \browse macros`
  129. ===========
  130. \S1 Bulleted List`
  131.  
  132. The \\S3 macro can be used to produce a list of bulleted items.`
  133.  
  134.   Definition:`
  135.  
  136. \f3\\define \\S3\\blockstart\\li480 \\tx480\\fi-250 \\bmc bluedot.bmp \\tab \\endm\``
  137.  
  138. Because the definition contains a {\b\\blockstart} command, the list should be terminated
  139. with a {\b\\blockend} command.`
  140.  
  141.   Example:`
  142.  
  143. \f3\\S3\``
  144. \f3 The \\\\S3 macro produces bulleted items.\``
  145. \f3 Here's another item.\``
  146. \f3\\blockend`
  147.  
  148.   Result:`
  149.  
  150. \S3`
  151. The \\S3 macro produces bulleted items.`
  152. Here's another item.`
  153. \blockend`
  154. ----------
  155.  
  156. \topic S4mac`
  157. \browse macros`
  158. ===========
  159. \S1 Numerical List, non-wrapping`
  160.  
  161.   Definition:`
  162.  
  163. \f3\\define \\S4 \\blockstart \\li0\\tqr \\tx600 \\tx840 \\tab \\keep \\sa75\\endm\``
  164.  
  165. Because the definition contains a {\b\\blockstart} command, the list should be terminated
  166. with a {\b\\blockend} command.`
  167.  
  168.   Example:`
  169.  
  170. \f3\\S4\``
  171. \f3 1.\\tab Here's the \\S4 macro.  It's useful for a numerical list. Note
  172.     that the second column doesn't wrap.\``
  173. \f3 22.\\tab The numbers in the first column are right justified.\``
  174. \f3\\blockend`
  175.  
  176.   Result:`
  177.  
  178. \S4`
  179. 1.\tab Here's the \\S4 macro.  It's useful for a numerical list. Note
  180. that the second column doesn't wrap.`
  181. 22.\tab The numbers in the first column are right justified.`
  182. \blockend`
  183. -----------
  184.  
  185. \topic S5mac`
  186. \browse macros`
  187. ===========
  188. \S1 Numerical Wrapping List`
  189.  
  190.   Definition:`
  191.  
  192. \f3\\define \\S5\\blockstart\\fi-480 \\li480\\tqr \\tx360\\tx480 \\sa100 \\tab\\endm\``
  193.  
  194. Because the definition contains a {\b\\blockstart} command, the list should be terminated
  195. with a {\b\\blockend} command.`
  196.  
  197.   Example:`
  198.  
  199. \f3\\S5\``
  200. \f3 1.\\tab Here's the \\S5 macro.  It's also useful for a numerical list. Note
  201.     that the second column wraps.\``
  202. \f3 22.\\tab The numbers in the first column are right justified.\``
  203. \f3\\blockend`
  204.  
  205.   Result:`
  206.  
  207. \S5`
  208. 1.\tab Here's the \\S5 macro.  It's also useful for a numerical list. Note
  209. that the second column wraps.`
  210. 22.\tab The numbers in the first column are right justified.`
  211. \blockend`
  212. -----------
  213.  
  214. \topic S6mac`
  215. \browse macros`
  216. ===========
  217. \S1 List of items, explanations`
  218.  
  219. The \\S6 macro is useful for a list of items and explanations.  It has a numerical parameter
  220. which specifies the spacing to the second column.  The second column wraps back to its
  221. tab position`
  222.  
  223.   Definition:`
  224.  
  225. \f3\\define \\S6\\blockstart\\li%1\\fi-%1\\tx360 \\tx%1 \\tab \\endm\``
  226.  
  227. Because the definition contains a {\b\\blockstart} command, the list should be terminated
  228. with a {\b\\blockend} command.`
  229.  
  230.   Example:`
  231.  
  232. \blockstart \f3`
  233. \\S6(1400)\``
  234. \\b\\ul Key\\tab\\b\\ul Usage\``
  235.     F1\\tab Brings up help information.  (This column wraps.)\``
  236. <alt>-X\tab Exits program\``
  237. \\blockend`
  238. \blockend
  239.  
  240.   Result:`
  241.  
  242. \S6(1400)`
  243. \b\ul Key\tab\b\ul Usage`
  244.    F1\tab Brings up help information. (This column wraps.)`
  245. <alt>-X\tab Exits program`
  246. \blockend`
  247. -------------
  248.  
  249. \title Help Project Source File (.HPS)`
  250. \topic HPSfile`
  251. \keyword help project source file;HPS file;.HPS file;macros (startup)`
  252. ===========
  253. \S2 Help Project Source File (.HPS)`
  254.  
  255. The Help Project Source File retains information on the help project between sessions.  RTFGEN
  256. maintains this file based on the information you supply through the various dialog boxes.`
  257.  
  258. Normally, you need not be concerned with the contents of this file.  However, in some special
  259. situations, you may want to add additional information or options.  These might include:
  260.  
  261. \S3`
  262. Adding start up macros to the \[CONFIG\] section`
  263. Adding aliases to the \[ALIAS\] section`
  264. Making use of one of the \[OPTIONS\] that RTFGEN doesn't handle such as ICON or COPYRIGHT`
  265. Or any other situation where you might want to alter the Help Project File [[(.HPJ):HPJfile]]`
  266. \blockend`
  267.  
  268. If you look at the .HPS file, you'll note that it is very similar to the [[.HPJ:HPJfile]]
  269.  file.  You can
  270. add the material you want and it will get copied to the .HPJ file.`
  271. -----------------
  272.  
  273.  
  274. \title Help Project File (.HPJ)`
  275. \topic HPJfile`
  276. \keyword help project file;HPJ file;.HPJ file`
  277. ===========
  278. \S2 Help Project File (.HPJ)`
  279.  
  280. The Help Project File is required by the MicroSoft Help Compiler.  This file is
  281. maintained by RTFGEN.`
  282. -----